﻿/*
 * LdAttrCollection
 * 
 * initial implementation : 26.6.2013
 *
 * Copyright (c) Adam Sida, asida@centrum.cz.
 * All rights reserved.
 * 
 * for license see cz.uhul.DSMLv2.txt
 */
using System;
using System.Collections.ObjectModel;
using System.Web;


namespace cz.uhul.DSMLv2
{
  public class LdAttrNameCollection : ObservableCollection<LdAttrName>
  {


    public bool ContainsName(string AttributeName)
    {

      foreach (LdAttrName a in this)
        if (a.Name.ToLower() == AttributeName.ToLower())
          return true;

      return false;
      
    }

  }
}